/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2023-12-31 15:42:47
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2023-12-31 15:49:24
 * @FilePath: \ShiXun1\vue-admin-main\src\api\rule.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

export function addRuleAPI(data) {
    return request({
      url: '/parking/rule',
      method: 'POST',
      data
    })
  }

  export function delRuleAPI(id) {
    return request({
      url: `/parking/rule/${id}`,
      method: 'DELETE',
    })
  }

  export function getRuleAPI(id) {
    return request({
      url: `/parking/rule/${id}`,
      method: 'GET',
    })
  }

  export function editRuleAPI(data) {
    return request({
      url: '/parking/rule',
      method: 'PUT',
      data
    })
  }

  export function getRuleListAPI(params) {
    return request({
      url: '/parking/rule/list',
      method: 'GET',
      params
    })
  }